<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  <input type="hidden" id="c-moduleid" name="row[moduleid]" value="{$moduleid}" />
<div class="form-group">
<label for="c-columnname" class="control-label col-xs-12 col-sm-2">列名:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-columnname" data-rule="required" class="form-control" name="row[columnname]" type="text" value="" />
</div>
</div>
<div class="form-group">
<label for="c-columnenname" class="control-label col-xs-12 col-sm-2">列名(英文):</label>
<div class="col-xs-12 col-sm-8">
<input id="c-columnenname" data-rule="required" class="form-control" name="row[columnenname]" type="text" value="" />
</div>
</div>
<div class="form-group">
<label for="c-columntype" class="control-label col-xs-12 col-sm-2">列的类型:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-columntype" data-rule="required" name="row[columntype]"  class="form-control selectpicker">
<option value="0">请选择</option>
<option value="varcharlong">varchar(1000)</option>
<option value="varcharmid">varchar(400)</option>
<option value="varcharshort">Varchar(100)</option>
<option value="identity">自动增长</option>
<option value="guid">guid</option>
<option value="int">int(10)</option>
<option value="bigint">bigint(20)</option>
<option value="smallint">smallint(4)</option>
<option value="bool">tinyint(1)</option>
<option value="float">float(4,2)</option>
<option value="decimal">decimal(4,2)</option>
<option value="double">double(18,2)</option>
<option value="image">image</option>
<option value="file">file</option>
<option value="text">text</option>
<option value="enum">enum</option>
</select>
</div>
</div>
<div class="form-group">
<label for="c-columncheck" class="control-label col-xs-12 col-sm-2">验证方式:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-columncheck" data-rule="required" name="row[columncheck]"  class="form-control selectpicker">
      <option value="0">请选择</option>
      <option value="required">必须填写</option>
      <option value="length(8~16)">长度在8—16之间</option>
      <option value="digits">数字</option>
      <option value="letters">字母</option>
      <option value="date">日期格式yyyy-mm-dd</option>
      <option value="email">Email</option>
      <option value="time">时间</option>
      <option value="url">网址</option>
      <option value="qq">QQ</option>
      <option value="IDcard">身份证号</option>
      <option value="tel">电话号码</option>
      <option value="mobile">手机号</option>
      <option value="zipcode">邮编</option>
      <option value="chinese">中文</option>
      <option value="username">用户名3-12位数字、字母、下划线</option>
      <option value="password">密码6-16位字符，不能包含空格</option>
      <option value="integer">整数</option>
      <option value="integer(+)">正整数</option>
      <option value="integer(-)">负整数</option>
</select>
</div>
</div>
<div class="form-group">
<label for="c-cname" class="control-label col-xs-12 col-sm-2">模型名称:</label>
<div class="col-xs-12 col-sm-8">
    <input id="c-cname" data-rule="required" class="form-control" name="row[cname]" type="text" value="{$cname}" />
</div>
</div>
<div class="form-group">
<label for="c-rname" class="control-label col-xs-12 col-sm-2">关联模型名称:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-rname" data-rule="" class="form-control" name="row[rname]" type="text" value="" />
</div>
</div>
<div class="form-group">
<label for="c-relate" class="control-label col-xs-12 col-sm-2">关系类型:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-relate" data-rule="required" name="row[relate]"  class="form-control selectpicker">
    <option value="0">请选择</option>
    <option value="1">一对一</option>
    <option value="2">多对一</option>
    <option value="3">多对多</option>
    <option value="4">一对多</option>
</select>
</div>
</div>
<div class="form-group">
<label for="c-isintable" class="control-label col-xs-12 col-sm-2">是否是表字段:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" for="isintable" >
<label for="isintable"><input name="row[isintable]" type="radio" value="1" checked="checked" /> 是</label>
<label for="isintable"><input name="row[isintable]" type="radio" value="0" /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowlist" class="control-label col-xs-12 col-sm-2">是否在列表显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" for="isshowlist" >
<label for="isshowlist"><input name="row[isshowlist]" type="radio" value="1" checked="checked" /> 是</label>
<label for="isshowlist"><input name="row[isshowlist]" type="radio" value="0" /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowadd" class="control-label col-xs-12 col-sm-2">在添加界面是否显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" for="isshowadd" >
<label for="isshowadd"><input name="row[isshowadd]" type="radio" value="1" checked="checked" /> 是</label>
<label for="isshowadd"><input name="row[isshowadd]" type="radio" value="0" /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowedit" class="control-label col-xs-12 col-sm-2">编辑界面是否显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" for="isshowedit" >
<label for="isshowedit"><input name="row[isshowedit]" type="radio" value="1" checked="checked" /> 是</label>
<label for="isshowedit"><input name="row[isshowedit]" type="radio" value="0" /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowwindow" class="control-label col-xs-12 col-sm-2">弹出窗口是否显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" for="isshowwindow" >
<label for="isshowwindow"><input name="row[isshowwindow]" type="radio" value="1" checked="checked" /> 是</label>
<label for="isshowwindow"><input name="row[isshowwindow]" type="radio" value="0" /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowsearch" class="control-label col-xs-12 col-sm-2">搜索的时候是否显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" for="isshowsearch" >
<label for="isshowsearch"><input name="row[isshowsearch]" type="radio" value="1" checked="checked" /> 是</label>
<label for="isshowsearch"><input name="row[isshowsearch]" type="radio" value="0" /> 否</label>
</div>
</div>
</div>
<!--
<div class="form-group">
<label for="c-isimport" class="control-label col-xs-12 col-sm-2">是否是导入字段:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" for="isimport" >
<label for="isimport"><input name="row[isimport]" type="radio" value="1" checked="checked" /> 是</label>
<label for="isimport"><input name="row[isimport]" type="radio" value="0" /> 否</label>
</div>
</div>
</div>
-->

<div class="form-group">
<label for="c-isoption" class="control-label col-xs-12 col-sm-2">是否选项:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" for="isoption" >
<label for="isoption"><input name="row[isoption]" type="radio" value="1" checked="checked" /> 是</label>
<label for="isoption"><input name="row[isoption]" type="radio" value="0" /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-options" class="control-label col-xs-12 col-sm-2">选项:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-options" data-rule="" class="form-control" name="row[options]" type="text" value="" />
</div>
</div>
<div class="form-group">
<label for="c-optionform" class="control-label col-xs-12 col-sm-2">选项的表现形式:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-optionform" data-rule="" name="row[optionform]"  class="form-control selectpicker">
    <option value="0">请选择</option>
    <option value="select">Bootstrap的select形式</option>
    <option value="radio">单选</option>
    <option value="checkbox">多选</option>
    <option value="select3">类别无限极选择</option>
    <option value="image">图片上传</option>
    <option value="file">文件上传</option>
    <option value="datetime">日期选择</option>
    <option value="upyunimage">又拍云图片上传</option>
    <option value="upyunfile">又拍云文件上传</option>
</select>
</div>
</div>
<div class="form-group">
<label for="c-optionurl" class="control-label col-xs-12 col-sm-2">获取选项的URL:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-optionurl" data-rule="" class="form-control" name="row[optionurl]" type="text" value="" />
</div>
</div>
<div class="form-group">
    <label for="c-default" class="control-label col-xs-12 col-sm-2">默认值:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-default" data-rule="" class="form-control" name="row[default]" type="text" value="" />
    </div>
</div>
<div class="form-group">
    <label for="c-listorder" class="control-label col-xs-12 col-sm-2">顺序:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-listorder" data-rule="" class="form-control" name="row[listorder]" type="number" value="1" />
    </div>
</div>

<div class="form-group">
<label for="c-intro" class="control-label col-xs-12 col-sm-2">简介:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-intro" data-rule="" class="form-control" name="row[intro]" type="text" value="" />
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
<button type="submit" class="btn btn-success btn-embossed">确定</button>
<button type="reset" class="btn btn-default btn-embossed">重置</button>
</div>
</div>
</form>
